// This file is part of Indico.
// Copyright (C) 2002 - 2025 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.

.cell-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  height: 64px;
}

.icon-cell {
  width: 50px;
}

.participant-table-row {
  position: relative;

  > p {
    width: 100%;
    line-height: 1em;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  &::after {
    position: absolute;
    right: 10px;
  }

  &:not(.unsortable) {
    > p {
      width: calc(100% - 12px);
    }
  }
}

:global(.ui.sortable.table) .participant-table-row:not(.unsortable):not(:global(.sorted))::after {
  display: inline-block;
  content: '\f0dc';
  opacity: 0.4;
}
